<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增锅炉房值班记录')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncGasDuty-add">
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">当班人</label>
				<div class="col-sm-8">

					<select id="nextDutyUser" class="form-control select2-multiple" name="nextDutyUser" >
						<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.userName}" th:disabled="${user.status == '1'}"></option>
					</select>
&lt;!&ndash;					<input id="nextDutyUser" name="nextDutyUser" class="form-control" type="text">&ndash;&gt;
				</div>
			</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">值班人</label>
				<div class="col-sm-8">

					<select id="onDutyUser" class="form-control select2-multiple" name="onDutyUser" >
						<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.userName}" th:selected="${loginName eq user.loginName}" th:disabled="${user.status == '1'}"></option>
					</select>
<!--					<input id="onDutyUser" name="onDutyUser" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">记录时间</label>
				<div class="col-sm-8">
					<input id="createTime"  data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required name="createTime" th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">夜间最低温度(℃) </label>   <!--： 1:全天 2：白班 3：夜班 字典取值：-->
				<div class="col-sm-8">

					<!--<select name="dutyNum" class="form-control m-b" th:with="type=${@dict.getType('dutyNum')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>-->
					<input id="dutyNum"  name="dutyNum" class="form-control" type="number" step="2">

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">锅炉号</label>
				<div class="col-sm-8">
					<select name="boilerNum" class="form-control m-b" th:with="type=${@dict.getType('boilerNum')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>

<!--					<input id="boilerNum" name="boilerNum" class="form-control" type="text">-->
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">气压阈值</label>
				<div class="col-sm-8">
					<input id="qyfz" name="qyfz" class="form-control" type="number" step="2">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">今日用气量</label>
				<div class="col-sm-8">
					<input id="yql" name="yql" class="form-control" type="number" step="2">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">锅炉运行压力(Mpa)</label>
				<div class="col-sm-8">
					<input id="boilerPressure" name="boilerPressure" class="form-control" type="number" step="2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">锅炉运行温度(℃)</label>
				<div class="col-sm-8">
					<input id="boilerTemperature" name="boilerTemperature" class="form-control" type="number" step="1">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">循环泵1运行压力(Mpa)</label>
				<div class="col-sm-8">
					<input id="pressure1" name="pressure1" class="form-control" type="number" step="2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">循环泵2运行压力(Mpa)</label>
				<div class="col-sm-8">
					<input id="pressure2" name="pressure2" class="form-control" type="number" step="2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">循环泵3运行压力(Mpa)</label>
				<div class="col-sm-8">
					<input id="pressure3" name="pressure3" class="form-control" type="number" step="2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">燃烧器运行情况 </label>        <!--1：正常 2：异常：-->
				<div class="col-sm-8">

					<select name="burner" class="form-control m-b" th:with="type=${@dict.getType('burner')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>
<!--					<input id="burner" name="burner" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">系统补水情况</label>          <!-- 1:正常 2:异常：-->
				<div class="col-sm-8">

					<select name="water" class="form-control m-b" th:with="type=${@dict.getType('water')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>
<!--					<input id="water" name="water" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">环境卫生情况</label>            <!-- 1:优 2:良 3：差：-->
				<div class="col-sm-8">

					<select name="health" class="form-control m-b" th:with="type=${@dict.getType('health')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>
<!--					<input id="health" name="health" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">排污情况 </label>           <!--1：已排 2：未排：-->
				<div class="col-sm-8">
					<select name="blowOff" class="form-control m-b" th:with="type=${@dict.getType('blowOff')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

					</select>

<!--					<input id="blowOff" name="blowOff" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" rows="4" class="form-control" type="text"> </textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
	<th:block th:include="include :: select2-js" />

    <script type="text/javascript">
		var prefix = ctx + "system/ncGasDuty"
		$("#form-ncGasDuty-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ncGasDuty-add').serialize());
	        }
	    }
	</script>
</body>
</html>
